package per.zqx.rabbit.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * FanoutDuanxinCustomer,
 *
 * @author Sa, Zhang 2021-06-06 15:22
 */
@Service
@RabbitListener(queues = "duanxin.direct.queue")
public class DirectDuanxinCustomer {

    @RabbitHandler
    public void receiveMassage(String message) {
        System.out.println("duanxin direct received message -> " + message);
    }

}
